
# constraints
#-----------



#-----------
# ad9361 master

#--
# ad9364 S band
set_property -dict {PACKAGE_PIN AC12 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_clk_in_0_p]
set_property -dict {PACKAGE_PIN AD11 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_clk_in_0_n]
set_property -dict {PACKAGE_PIN AB15 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_frame_in_0_p]
set_property -dict {PACKAGE_PIN AB14 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_frame_in_0_n]
set_property -dict {PACKAGE_PIN W16 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[0]}]
set_property -dict {PACKAGE_PIN W15 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[0]}]
set_property -dict {PACKAGE_PIN Y16 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[1]}]
set_property -dict {PACKAGE_PIN Y15 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[1]}]
set_property -dict {PACKAGE_PIN AC17 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[2]}]
set_property -dict {PACKAGE_PIN AC16 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[2]}]
set_property -dict {PACKAGE_PIN AE16 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[3]}]
set_property -dict {PACKAGE_PIN AE15 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[3]}]
set_property -dict {PACKAGE_PIN AE13 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[4]}]
set_property -dict {PACKAGE_PIN AF13 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[4]}]
set_property -dict {PACKAGE_PIN AE12 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[5]}]
set_property -dict {PACKAGE_PIN AF12 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[5]}]
#--#
set_property -dict {PACKAGE_PIN AD16 IOSTANDARD LVDS_25} [get_ports tx_clk_out_0_p]
set_property -dict {PACKAGE_PIN AD15 IOSTANDARD LVDS_25} [get_ports tx_clk_out_0_n]
set_property -dict {PACKAGE_PIN AA15 IOSTANDARD LVDS_25} [get_ports tx_frame_out_0_p]
set_property -dict {PACKAGE_PIN AA14 IOSTANDARD LVDS_25} [get_ports tx_frame_out_0_n]
set_property -dict {PACKAGE_PIN AF15 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[0]}]
set_property -dict {PACKAGE_PIN AF14 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[0]}]
set_property -dict {PACKAGE_PIN AE11 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[1]}]
set_property -dict {PACKAGE_PIN AF10 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[1]}]
set_property -dict {PACKAGE_PIN AE10 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[2]}]
set_property -dict {PACKAGE_PIN AD10 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[2]}]
set_property -dict {PACKAGE_PIN AB12 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[3]}]
set_property -dict {PACKAGE_PIN AC11 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[3]}]
set_property -dict {PACKAGE_PIN Y17 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[4]}]
set_property -dict {PACKAGE_PIN AA17 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[4]}]
set_property -dict {PACKAGE_PIN AA13 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[5]}]
set_property -dict {PACKAGE_PIN AA12 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[5]}]
#--#
set_property -dict {PACKAGE_PIN Y12 IOSTANDARD LVCMOS25} [get_ports enable_0]
set_property -dict {PACKAGE_PIN Y11 IOSTANDARD LVCMOS25} [get_ports txnrx_0]
#--#
set_property -dict {PACKAGE_PIN AB17 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[0]}]
set_property -dict {PACKAGE_PIN AB16 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[1]}]
set_property -dict {PACKAGE_PIN Y10 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[2]}]
set_property -dict {PACKAGE_PIN AA10 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[3]}]
set_property -dict {PACKAGE_PIN AB11 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[4]}]
set_property -dict {PACKAGE_PIN AB10 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[5]}]
set_property -dict {PACKAGE_PIN W13 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[6]}]
set_property -dict {PACKAGE_PIN Y13 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[7]}]
#--#
set_property -dict {PACKAGE_PIN AE17 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_0[0]}]
set_property -dict {PACKAGE_PIN AF17 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_0[1]}]
set_property -dict {PACKAGE_PIN E16 IOSTANDARD LVCMOS18} [get_ports {gpio_ctl_0[2]}]
set_property -dict {PACKAGE_PIN D16 IOSTANDARD LVCMOS18} [get_ports {gpio_ctl_0[3]}]
set_property -dict {PACKAGE_PIN B16 IOSTANDARD LVCMOS18} [get_ports gpio_en_agc_0]
#--#set_property -dict {PACKAGE_PIN AD15 IOSTANDARD LVCMOS25} [get_ports gpio_sync_0]
set_property -dict {PACKAGE_PIN D11 IOSTANDARD LVCMOS18} [get_ports mcs_sync]
#--#
set_property -dict {PACKAGE_PIN E15 IOSTANDARD LVCMOS18} [get_ports gpio_resetb_0]

set_property -dict {PACKAGE_PIN AD23 IOSTANDARD LVCMOS25} [get_ports ref_clk_p]


# spi

set_property PACKAGE_PIN B15 [get_ports spi_ad9361_0]
set_property IOSTANDARD LVCMOS18 [get_ports spi_ad9361_0]
set_property PULLUP true [get_ports spi_ad9361_0]
set_property SLEW FAST [get_ports spi_ad9361_0]
set_property DRIVE 16 [get_ports spi_ad9361_0]

set_property PACKAGE_PIN H12 [get_ports spi_ad9361_1]
set_property IOSTANDARD LVCMOS18 [get_ports spi_ad9361_1]
set_property PULLUP true [get_ports spi_ad9361_1]
set_property SLEW FAST [get_ports spi_ad9361_1]
set_property DRIVE 16 [get_ports spi_ad9361_1]
#

set_property -dict {PACKAGE_PIN A15 IOSTANDARD LVCMOS18} [get_ports spi_clk]
set_property SLEW FAST [get_ports spi_clk]
set_property DRIVE 16 [get_ports spi_clk]
set_property PULLUP true [get_ports spi_clk]
create_clock -period 5.000 -name spi_clk [get_ports spi_clk]

set_property -dict {PACKAGE_PIN D13 IOSTANDARD LVCMOS18} [get_ports spi_mosi]
set_property SLEW FAST [get_ports spi_mosi]
set_property DRIVE 16 [get_ports spi_mosi]
set_property PULLUP true [get_ports spi_mosi]

set_property -dict {PACKAGE_PIN C13 IOSTANDARD LVCMOS18} [get_ports spi_miso]
set_property PULLUP true [get_ports spi_miso]


# ad9361 slave

#----------

########## ad9364 L band ##############################################

set_property -dict {PACKAGE_PIN AD23 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_clk_in_1_p]
set_property -dict {PACKAGE_PIN AD24 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_clk_in_1_n]
set_property -dict {PACKAGE_PIN AD20 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_frame_in_1_p]
set_property -dict {PACKAGE_PIN AD21 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_frame_in_1_n]
set_property -dict {PACKAGE_PIN AA25 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_p[0]}]
set_property -dict {PACKAGE_PIN AB25 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_n[0]}]
set_property -dict {PACKAGE_PIN W18 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_p[1]}]
set_property -dict {PACKAGE_PIN W19 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_n[1]}]
set_property -dict {PACKAGE_PIN AB21 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_p[2]}]
set_property -dict {PACKAGE_PIN AB22 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_n[2]}]
set_property -dict {PACKAGE_PIN AE25 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_p[3]}]
set_property -dict {PACKAGE_PIN AE26 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_n[3]}]
set_property -dict {PACKAGE_PIN AB26 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_p[4]}]
set_property -dict {PACKAGE_PIN AC26 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_n[4]}]
set_property -dict {PACKAGE_PIN W20 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_p[5]}]
set_property -dict {PACKAGE_PIN Y20 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_1_n[5]}]

set_property -dict {PACKAGE_PIN AD25 IOSTANDARD LVDS_25} [get_ports tx_clk_out_1_p]
set_property -dict {PACKAGE_PIN AD26 IOSTANDARD LVDS_25} [get_ports tx_clk_out_1_n]
set_property -dict {PACKAGE_PIN AE18 IOSTANDARD LVDS_25} [get_ports tx_frame_out_1_p]
set_property -dict {PACKAGE_PIN AF18 IOSTANDARD LVDS_25} [get_ports tx_frame_out_1_n]
set_property -dict {PACKAGE_PIN AE23 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[0]}]
set_property -dict {PACKAGE_PIN AF23 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[0]}]
set_property -dict {PACKAGE_PIN Y18 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[1]}]
set_property -dict {PACKAGE_PIN AA18 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[1]}]
set_property -dict {PACKAGE_PIN AE22 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[2]}]
set_property -dict {PACKAGE_PIN AF22 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[2]}]
set_property -dict {PACKAGE_PIN AA22 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[3]}]
set_property -dict {PACKAGE_PIN AA23 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[3]}]
set_property -dict {PACKAGE_PIN AA24 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[4]}]
set_property -dict {PACKAGE_PIN AB24 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[4]}]
set_property -dict {PACKAGE_PIN AD18 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[5]}]
set_property -dict {PACKAGE_PIN AD19 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[5]}]

set_property -dict {PACKAGE_PIN AF24 IOSTANDARD LVCMOS25} [get_ports enable_1]
set_property -dict {PACKAGE_PIN AF25 IOSTANDARD LVCMOS25} [get_ports txnrx_1]

set_property -dict {PACKAGE_PIN AF19 IOSTANDARD LVCMOS25} [get_ports {gpio_status_1[0]}]
set_property -dict {PACKAGE_PIN AF20 IOSTANDARD LVCMOS25} [get_ports {gpio_status_1[1]}]
set_property -dict {PACKAGE_PIN AE20 IOSTANDARD LVCMOS25} [get_ports {gpio_status_1[2]}]
set_property -dict {PACKAGE_PIN AE21 IOSTANDARD LVCMOS25} [get_ports {gpio_status_1[3]}]
set_property -dict {PACKAGE_PIN AA19 IOSTANDARD LVCMOS25} [get_ports {gpio_status_1[4]}]
set_property -dict {PACKAGE_PIN AB19 IOSTANDARD LVCMOS25} [get_ports {gpio_status_1[5]}]
set_property -dict {PACKAGE_PIN AA20 IOSTANDARD LVCMOS25} [get_ports {gpio_status_1[6]}]
set_property -dict {PACKAGE_PIN AB20 IOSTANDARD LVCMOS25} [get_ports {gpio_status_1[7]}]

set_property -dict {PACKAGE_PIN AC18 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_1[0]}]
set_property -dict {PACKAGE_PIN AC19 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_1[1]}]
set_property -dict {PACKAGE_PIN F13 IOSTANDARD LVCMOS18} [get_ports {gpio_ctl_1[2]}]
set_property -dict {PACKAGE_PIN E13 IOSTANDARD LVCMOS18} [get_ports {gpio_ctl_1[3]}]
set_property -dict {PACKAGE_PIN H13 IOSTANDARD LVCMOS18} [get_ports gpio_en_agc_1]

set_property -dict {PACKAGE_PIN F14 IOSTANDARD LVCMOS18} [get_ports gpio_resetb_1]































